From c1d8b163120efcc79058f8d272aafc7dafa291e4 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 9 Jul 2007 14:30:46 +0100 Subject: [PATCH] Introduce 'bootscrub' boolean cmdline option. Default on. no-bootscrub will disable boot-time RAM scrubbing, speeding up boot time significantly on big-memory systems. Signed-off-by: Keir Fraser --- xen/common/page_alloc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 5fe3742c5e..e2b64dccab 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -45,6 +45,12 @@ static char opt_badpage[100] = ""; string_param("badpage", opt_badpage); +/* + * no-bootscrub -> Free pages are not zeroed during boot. + */ +static int opt_bootscrub __initdata = 1; +boolean_param("bootscrub", opt_bootscrub); + /* * Bit width of the DMA heap. */ @@ -624,6 +630,9 @@ void __init scrub_heap_pages(void) void *p; unsigned long mfn; + if ( !opt_bootscrub ) + return; + printk("Scrubbing Free RAM: "); for ( mfn = first_valid_mfn; mfn < max_page; mfn++ ) -- 2.30.2